﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="@Url.Content("~/plugin/css/pikaday.css")">
<link rel="stylesheet" href="@Url.Content("~/plugin/css/site.css")">
<script src="@Url.Content("~/plugin/moment.min.js")"></script>
<script src="@Url.Content("~/plugin/pikaday.js")"></script>

@model PessModel.Archive

@{
    ViewBag.Title = "创建档案";
}
<script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")" type="text/javascript"></script>

<div id="m-title">
    <h2>创建档案</h2>
    <div id="m-op">
        @Html.ActionLink("返回档案列表", "Index", new { activityID = ViewBag.ActivityID }, new { @class = "f-btn-long" })
    </div>
</div> 

@using (Html.BeginForm()) {

    <fieldset class="edit">
        <p>@Html.ValidationSummary(true)</p>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.ProjectTitle)*@
                @*@PessResources.Archive.ProjectTitle*@
                @ViewBag.ArchiveProjectTitleDisplayName：
            </span>
            @Html.EditorFor(model => model.ProjectTitle,null,null,new { @class = "f-it-long" })<span class="f-warn"> * </span>
            @Html.ValidationMessageFor(model => model.ProjectTitle)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.ProjectTitle)*@
                @*@PessResources.Archive.SerialNumber*@
                @ViewBag.ArchiveSerialNumberDisplayName：
            </span>
            @Html.EditorFor(model => model.SerialNumber) <span class="f-warn"> (如没有则不填) </span>
            @Html.ValidationMessageFor(model => model.SerialNumber)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.SubjectID, "Subject")*@
                @*@PessResources.Archive.SubjectName*@
                @ViewBag.ArchiveSubjectNameDisplayName：
            </span>
            @Html.DropDownList("SubjectID", String.Empty)<span class="f-warn"> * </span>
            @Html.ValidationMessageFor(model => model.SubjectID)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.CountyCode)*@
                @*@PessResources.Archive.CountyName*@
                @ViewBag.ArchiveCountyNameDisplayName：&#8195;&#8195;
            </span>
            @Html.DropDownList("CountyCode")<span class="f-warn"> * </span>
            @Html.ValidationMessageFor(model => model.CountyCode)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.TeacherName)*@
                @*@PessResources.Archive.TeacherName*@
                @ViewBag.ArchiveTeacherNameDisplayName：&#8195;
            </span>
            @Html.EditorFor(model => model.TeacherName)
            @Html.ValidationMessageFor(model => model.TeacherName)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.Birthdate)*@出生日期：
            </span>
            <input type="text" id="Birthdate" name="Birthdate" value="@Html.DisplayFor(model => model.Birthdate)">
            @Html.ValidationMessageFor(model => model.Birthdate)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.Gender)*@性别：&#8195;&#8195;
            </span>
            @Html.DropDownList("Gender")
            @Html.ValidationMessageFor(model => model.Gender)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.PhoneNumber)*@电话号码：
            </span>
            @Html.EditorFor(model => model.PhoneNumber)
            @Html.ValidationMessageFor(model => model.PhoneNumber)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.EducationDegree)*@学历：&#8195;&#8195;
            </span>
            @Html.EditorFor(model => model.EducationDegree)
            @Html.ValidationMessageFor(model => model.EducationDegree)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.GradeLevel)*@任教年级：
            </span>
            @Html.EditorFor(model => model.GradeLevel)
            @Html.ValidationMessageFor(model => model.GradeLevel)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.SchoolName)*@
                @*@PessResources.Archive.SchoolName*@
                @ViewBag.ArchiveSchoolNameDisplayName：
            </span>
            @Html.EditorFor(model => model.SchoolName)
            @Html.ValidationMessageFor(model => model.SchoolName)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.SchoolAddress)*@学校地址：
            </span>
            @Html.EditorFor(model => model.SchoolAddress)
            @Html.ValidationMessageFor(model => model.SchoolAddress)
        </div>
        <div class="m-inline">
            <span>
                @*@Html.LabelFor(model => model.SchoolPrincipal)*@校长：&#8195;&#8195;
            </span>
            @Html.EditorFor(model => model.SchoolPrincipal)
            @Html.ValidationMessageFor(model => model.SchoolPrincipal)
        </div>
        <div class="m-inline">
            <span class="f-lg-gs">
                @*@Html.LabelFor(model => model.SchoolComment)*@学校评语：
            </span>
            @Html.EditorFor(model => model.SchoolComment)
            @Html.ValidationMessageFor(model => model.SchoolComment)
        </div>
        <div class="m-inline">
            <spann class="f-lg-gs">
                @*@Html.LabelFor(model => model.CountyEBComment)*@区县评语：
            </spann>
            @Html.EditorFor(model => model.CountyEBComment)
            @Html.ValidationMessageFor(model => model.CountyEBComment)
        </div>
        <div class="m-inline">
            <span>
                历史档案号：
            </span>
            @Html.EditorFor(model => model.PreviousSN)
            @Html.ValidationMessageFor(model => model.PreviousSN)
        </div>
        <div class="m-inline f-ta-lt">
            <input type="submit" value="新建并显示详细信息" class="u-btn u-btn-save2" />
        </div>


            @*@Html.LabelFor(model => model.Subject.ActivityID, "Activity")*@
            @*@Html.DropDownList("ActivityID", String.Empty)
            @Html.ValidationMessageFor(model => model.Subject.ActivityID)*@
            @Html.Hidden("ActivityID",(int)ViewBag.ActivityID)
               
    </fieldset>
}


@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
<script>
        var pikaday1 = new Pikaday({
            field: document.getElementById('Birthdate'),
            firstDay: 1,
            minDate: new Date('1905-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [1905,2025],
            onSelect: function () { },
            onOpen: function () {
            }
        });
</script>